﻿using ArtMath.Core.Data;
using ArtMath.Data;
using System;
using System.ComponentModel;
using System.Drawing;

namespace ArtMath.Component.Annotation
{
    [Serializable]
    public class ReadOnlyText : TextArea
    {
        public ReadOnlyText(SketchPad pad, string name, string text) : base(pad, name, text, true)
        {
            FitSize = ShowBorder = false;
            bgColor.Color = Color.Transparent;
        }
        [ReadOnly(true)]
        public override string Text
        {
            get
            {
                return base.Text;
            }

            set
            {
                base.Text = value;
            }
        }
        [Browsable(false)]
        public override SizeS Size
        {
            get
            {
                return base.Size;
            }

            set
            {
                base.Size = value;
            }
        }
        [Browsable(false)]
        public override bool FitSize
        {
            get
            {
                return base.FitSize;
            }

            set
            {
                base.FitSize = value;
            }
        }
    }
}
